import axios from "./request.js"

export const get = (url, params) => {
    return new Promise((resolve, reject) => {
        axios.get(url, {params}).then(res => {
            resolve(res.data)

        }).catch((err) => {
            reject(err)
        })
    })


}
export const post = (url, params) => {
    return new Promise((resolve, reject) => {
        axios.get(url, params).then(res => {
            resolve(res)
        }).catch((err) => {
            reject(err)
        })
    })

}
